<template>
	<view class="dot-main">
		<view :class="['dot-item',current==index?'active':'']" v-for="(item,index) in list" :key="index"></view>
	</view>
</template>
<style>
	.dot-main {
		width: 100vw;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-left: 33vw;
	}
	.dot-item {
		width: 15upx;
		height: 15upx;
		border-radius: 100%;
		margin: -60upx 6upx 0;
		box-sizing: border-box;
		background-color: #b1b1b1;
		z-index: 100;
	}
	.active {
		background-color: #ffffff;
	}
</style>
<script>
	export default {
		props: [ 'list','current'],
		data() {
			return {
				
			};
		}
	}
</script>